home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
os2
/
gnuwget.zip
/
wget-1.4.3
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1997-02-06
|
3KB
|
134 lines
# Makefile for `Wget' utility
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# Version: @VERSION@
#
SHELL = /bin/sh
@SET_MAKE@
srcdir = @srcdir@
VPATH = @srcdir@
#
# User configuration section
#
# Look at config.h to set up configuration and machine-dependent options
#
# Install variables
#
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
infodir = @infodir@
sysconfdir = @sysconfdir@
mandir = @mandir@
manext = 1
CC = @CC@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\"
LIBS = @LIBS@
LDFLAGS = @LDFLAGS@
#
# End of user configuration section. There should be no need to change
# anything below this line.
#
RM = rm -f
# flags passed to recursive makes in subdirectories
MAKEDEFS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' DEFS='$(DEFS)' \
CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' \
prefix='$(prefix)' exec_prefix='$(exec_prefix)' bindir='$(bindir)' \
infodir='$(infodir)' mandir='$(mandir)' manext='$(manext)'
# subdirectories in the distribution
SUBDIRS = src doc util
# default target
all: Makefile $(SUBDIRS)
$(SUBDIRS): FORCE
cd $@ && $(MAKE) $(MAKEDEFS)
FORCE:
# install everything
install: install.bin install.info install.man install.wgetrc
# install/uninstall the binary
install.bin uninstall.bin:
cd src && $(MAKE) $(MAKEDEFS) $@
# install/uninstall the info/man pages
install.info uninstall.info install.man uninstall.man install.wgetrc:
cd doc && $(MAKE) $(MAKEDEFS) $@
#
# Cleanup dependencies
#
clean: clean-recursive clean-top
distclean: distclean-recursive distclean-top
realclean: realclean-recursive realclean-top
clean-top:
$(RM) *~ *.bak
distclean-top: clean-top
$(RM) Makefile config.h config.status config.log config.cache
realclean-top: distclean-top
clean-recursive distclean-recursive realclean-recursive:
for subdir in $(SUBDIRS); do \
target=`echo $@ | sed s/-recursive//`; \
(cd $$subdir && $(MAKE) $(MAKEDEFS) $$target) || exit 1; \
done
#
# Dependencies for maintenance
#
$(srcdir)/configure: configure.in aclocal.m4
cd $(srcdir) && autoconf
# autoheader might not change config.h.in, so touch a stamp file.
$(srcdir)/config.h.in: stamp-h.in
$(srcdir)/stamp-h.in: configure.in aclocal.m4
echo timestamp > $(srcdir)/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
# create tag files for Emacs
TAGS:
cd src && $(MAKE) $@